package com.cardbaobao.cardbabyclient.model.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by jiangzx on 2017/3/24.
 */

public class CbbDataBase extends SQLiteOpenHelper {

    public CbbDataBase(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(SQL.CREATE_TABLE_HAVE_READ_MESSAGE);
        db.execSQL(SQL.CREATE_TABLE_RED_ENVELOPES_RECORD);
        db.execSQL(SQL.CREATE_TABLE_LAUNCHER_AD_CLICKED);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }


}
